<!DOCTYPE html>
<html lang="zh-CN">

<head>

  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">

  <title>10 - 翻盖开关（HTML+CSS）</title>

  <link rel="stylesheet" href="./css/index.css">

</head>

<body>

  <div class="box">
    <input type="checkbox">

    <span>On</span>
    <span>Off</span>
  </div>


  <div class="box" style="margin-left: 150px;">
    <input type="checkbox">

    <span>开</span>
    <span>关</span>
  </div>

</body>

</html>